# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=sslcat
pkgver=1.0
pkgrel=3
pkgdesc='A simple Unix utility that reads and writes data across an SSL enable network connection.'
url='http://www.bindshell.net/tools/sslcat'
license=('BSD-2-Clause')
groups=('blackarch' 'blackarch-misc')
arch=('x86_64' 'aarch64')
depends=('openssl-1.0')
makedepends=('autoconf' 'automake')
#source=("http://www.bindshell.net/tools/sslcat/$pkgname.tgz")
source=("https://web.archive.org/web/20100612235954/http://bindshell.net/tools/sslcat/sslcat.tgz")
sha512sums=('4ca86820fc3c08d0e64a95623fc43833f9bd2c9ec0beec3e33f74684f9bfc7da3c58a1a311cb8752e655a00428c01f03834a18e9103863c83afd81d105d52086')

prepare() {
  cd $pkgname

  aclocal
  autoreconf
}

build() {
  cd $pkgname

  ./configure --prefix=/usr --mandir=/usr/share/man/

  make -j1
}

package(){
  cd $pkgname

  make prefix="$pkgdir/usr" mandir="$pkgdir/usr/share/man" install
}

